<?php
//Connect to database
include_once("config.php");

//Connect to server and select database.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");

//Information sent from form
$id=$_GET['id'];

// Delete information from database
mysql_query("DELETE FROM members WHERE id='$id'") 
or die(mysql_error());
header("Location: new_page_1.php");

?>
